package Thread.Thread03;

import object.toString.A;

import java.util.Collection;
import java.util.concurrent.Callable;

public class DrawThread extends Thread {
    private Account account;
    public DrawThread(Account account,String name){
        super(name);
        this.account  = account;

    }
    @Override
    public void run() {
        super.run();
        //取钱(小明，小红)
        account.drawMoney(100000);
    }
}
